package com.woniu51.order.domain;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 杨光
 * @date 2022年04月08日 15:55
 */

@Table(name="tb_order")
public class Order {

    @Id
    private Long orderId;//` bigint(20) NOT NULL COMMENT '订单id',
    private Integer orderTotalDiscount;//` int(8) DEFAULT NULL COMMENT '订单折扣金额',
    private Long userId;//` int(11) DEFAULT NULL COMMENT '用户id',
    private Integer orderStatus;//` int(1) DEFAULT NULL COMMENT '订单状态1-待付款 2-已付款 3-超时失效 4-逻辑删除',
    private Integer orderCount;//` int(8) DEFAULT NULL COMMENT '订单包含的票数',
    private Integer orderTotalPay;//` int(8) DEFAULT NULL COMMENT '订单应付金额（打折后）',
    private Integer orderTotal;//` int(8) DEFAULT NULL COMMENT '订单总金额（打折前）',
    private Integer fareMoney;//` int(8) DEFAULT NULL COMMENT '单张票的金额',
    private Date orderTime;//` datetime DEFAULT NULL COMMENT '下单时间',
    private Integer hallMovieId;//` int(8) DEFAULT NULL COMMENT '订单关联的电影场次',
    private Integer userCouponId;//` int(8) DEFAULT NULL COMMENT '用户使用的优惠券id',
    private Integer showFlag;//` int(1) DEFAULT NULL COMMENT '是否显示在在用户订单列表里1-显示 0-不显示',
    private Integer cinemaId;//` int(8) DEFAULT NULL COMMENT '电影院id',
    private Integer movieId;//` int(8) DEFAULT NULL COMMENT '电影id',

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderTotalDiscount() {
        return orderTotalDiscount;
    }

    public void setOrderTotalDiscount(Integer orderTotalDiscount) {
        this.orderTotalDiscount = orderTotalDiscount;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public Integer getOrderTotalPay() {
        return orderTotalPay;
    }

    public void setOrderTotalPay(Integer orderTotalPay) {
        this.orderTotalPay = orderTotalPay;
    }

    public Integer getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(Integer orderTotal) {
        this.orderTotal = orderTotal;
    }

    public Integer getFareMoney() {
        return fareMoney;
    }

    public void setFareMoney(Integer fareMoney) {
        this.fareMoney = fareMoney;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getHallMovieId() {
        return hallMovieId;
    }

    public void setHallMovieId(Integer hallMovieId) {
        this.hallMovieId = hallMovieId;
    }

    public Integer getUserCouponId() {
        return userCouponId;
    }

    public void setUserCouponId(Integer userCouponId) {
        this.userCouponId = userCouponId;
    }

    public Integer getShowFlag() {
        return showFlag;
    }

    public void setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
    }

    public Integer getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(Integer cinemaId) {
        this.cinemaId = cinemaId;
    }

    public Integer getMovieId() {
        return movieId;
    }

    public void setMovieId(Integer movieId) {
        this.movieId = movieId;
    }
}
